package com.omaitec.log4j.mq.spring;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

public class DefaultResponseQueueListener implements MessageListener {

    public void onMessage(Message message) {
	if (message instanceof TextMessage) {
	    TextMessage textMessage = (TextMessage) message;
	    try {
		System.out.println("消息回复内容：" + textMessage.getText());
	    } catch (JMSException e) {
		e.printStackTrace();
	    }
	}
    }

}
